home *** CD-ROM | disk | FTP | other *** search
/ The Utilities Experience / The Utilities Experience - Volume 1.iso / software / icons+tools / icontools-2.01 / dmakefile < prev    next >
Makefile  |  1995-12-22  |  4KB  |  162 lines

  1. # IconTools -*- Makefile -*- for Matt Dillon's nice DICE (Amiga)
  2. #
  3. # (c)Copyright 1994,95 by Tobias Ferber, ukjg@rz.uni-karlsruhe.de
  4. #
  5. # This file is part of the IconTools distribution.
  6. #
  7. # IconTools is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published
  9. # by the Free Software Foundation; either version 1 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # IconTools is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this file; see the file COPYING.  If not, write to
  19. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. # $VER: $Id: DMakefile,v 1.5 1995/08/06 20:40:05 tf Exp $
  22.  
  23. RM = delete quiet
  24. CP = copy quiet clone
  25.  
  26. #
  27.  
  28. stem        = icontools
  29. suffix      = texi
  30. #suffix      = texinfo
  31. makeguide   = makeguide --amiga-39
  32. #makeguide   = makeinfo --amiga
  33. guide2doc   = guide2doc
  34. #guide2doc   = ag2txt
  35. texindex    = texindex
  36. tex         = virtex &tex
  37. dvips       = dvips
  38.  
  39. #
  40.  
  41. distdir = icontools-2.01
  42. arcname = icontools-2.01
  43.  
  44. ##############################################################################
  45. #
  46. # DCC 2.07.56R (11.6.93)
  47. #
  48.  
  49. CC      = dcc
  50. CFLAGS  = -3.1 -030 -s
  51. DEBUG   = -DDEBUG
  52.  
  53. ##############################################################################
  54. #
  55. # GNU C (tested with gcc version 2.6.3)
  56. #
  57.  
  58. #CC      = gcc
  59. #CFLAGS  = -noixemul -Iinclude: -I.
  60. ##CFLAGS  = -O3 -Wall -noixemul -m68030 -m68881 -Iinclude: -I.
  61. #DEBUG   = -DDEBUG
  62. ##DEBUG   =
  63.  
  64. ##############################################################################
  65. #
  66. # You don't want to change anything below this line
  67. #
  68.  
  69. stem = icontools
  70. exes = icon2c opticon im
  71.  
  72. objs = modules/parse.o \
  73.        modules/ilbmr.o \
  74.        modules/loadilbm.o \
  75.        modules/iffpstrings.o \
  76.        modules/getbitmap.o \
  77.        modules/unpacker.o
  78.  
  79. ##############################################################################
  80.  
  81. all: $(exes)
  82.  
  83. icon2c: icon2c.c
  84.     $(CC) $(CFLAGS) $(DEBUG) -o %(left) %(right)
  85.  
  86. opticon: opticon.o memfn.o
  87.     $(CC) $(CFLAGS) $(DEBUG) -o %(left) %(right)
  88.  
  89. im: im.o $(objs)
  90.     $(CC) $(CFLAGS) $(DEBUG) -o %(left) %(right)
  91.  
  92. im.o opticon.o memfn.o: im.c opticon.c memfn.c
  93.     $(CC) $(CFLAGS) $(DEBUG) -c -o %(left) %(right)
  94.  
  95. $(objs): $(objs:*.o:*.c)
  96.     $(CC) $(CFLAGS) $(DEBUG) -I.. -c -o %(left) %(right)
  97.  
  98. ##############################################################################
  99.  
  100. docs: $(stem).guide $(stem).dvi $(stem).ps
  101.  
  102. $(stem).guide: $(stem).texi
  103.     $(makeguide) -o %(left) %(right)
  104.  
  105. # $(tex) creates the .(log|toc|aux|dvi) files
  106.  
  107. $(stem).dvi: $(stem).$(suffix)
  108.     $(tex) %(right)
  109.  
  110. $(stem).ps: $(stem).dvi
  111.     $(dvips) $(stem).dvi
  112.  
  113. # $(texindex) creates the #?.(cps|fns|vrs|kys|pgs|aus) files
  114.  
  115. book: $(stem).$(suffix)
  116.     $(tex) $(stem).$(suffix)
  117.     $(tex) $(stem).$(suffix)
  118.     $(texindex) $(stem).cp
  119.     $(texindex) $(stem).fn
  120.     $(texindex) $(stem).vr
  121.     $(texindex) $(stem).ky
  122.     $(texindex) $(stem).pg
  123.     $(tex) $(stem).$(suffix)
  124.  
  125. ##############################################################################
  126.  
  127. clean:
  128.     $(RM) $(exes) #?.o $(objs) #?.(log|toc|aux|cp|fn|vr|ky|pg|cps|fns|vrs|kys|pgs|tp|log)
  129.  
  130. bumprev:
  131.     execute cico
  132.  
  133. install: $(exes)
  134.     $(CP) IM OptIcon work:bin/
  135.     $(CP) OptIcon.rexx work:rexx/
  136.     $(CP) Icon2c devel:bin/
  137.  
  138. dist: $(exes) $(stem).texi $(stem).guide $(stem).dvi $(stem).ps
  139.     $(CP) `cpdist -n` $(distdir)
  140.     lha -a -e -r -x a $(arcname).lha $(distdir)
  141.     delete all quiet $(distdir)
  142.  
  143. #    tar cf $(arcname).tar $(distdir)
  144. #    gzip -9 $(arcname).tar
  145.  
  146. ##############################################################################
  147.  
  148. 000:
  149.     echo >ram:000.cvt "*"-030*"->*"-000*";"
  150.     cvt -s -f ram:000.cvt DMakefile -o %s.000
  151.     delete quiet ram:000.cvt
  152.     dmake -a -f DMakefile.000 all
  153.     rename icon2c icon2c.000
  154.     rename opticon opticon.000
  155.     rename im im.000
  156.  
  157. 030:
  158.     dmake -a all
  159.     rename icon2c icon2c.030
  160.     rename opticon opticon.030
  161.     rename im im.030
  162.